﻿using System;
using SeaVM.Instructions;

namespace SeaVM
{
    class Program
    {
        static void Main(string[] args)
        {
            VM vm = new VM();
            /*
                define value 0x01
                pop
                push 100
                push 100
                add
                push 1000
                gr
                cjmp a
            */
            vm.PushInstruction(Pop.Create());
            vm.PushInstruction(Pop.Create());
            vm.PushInstruction(Push.Create(new Data(100)));
            vm.PushInstruction(Push.Create(new Data(100)));
            vm.PushInstruction(Add.Create());
            vm.PushInstruction(Print.Create());
            vm.PushInstruction(Push.Create(new Data(1000)));
            vm.PushInstruction(Le.Create());
            vm.PushInstruction(Cjmp.Create(0));
            vm.Run();
        }
    }
}
